package operation;

import book.Book;
import book.BookList;

public class ShowOperation implements IOperation{
    public void work(BookList bookList) {
        System.out.println("显示图书....");

        int currentSize= bookList.getUsedSize();//获取当前书架上有几本书
        for(int i=0;i<currentSize;i++) {
            Book book= bookList.getBook(i);
            System.out.println(book);
        }
    }
}
